import request from '@/utils/request'

// 查询用户做题记录列表
export function listUserpaper(query) {
  return request({
    url: '/generator/userpaper/list',
    method: 'get',
    params: query
  })
}

// 查询用户做题记录详细
export function getUserpaper(id) {
  return request({
    url: '/generator/userpaper/' + id,
    method: 'get'
  })
}

// 新增用户做题记录
export function addUserpaper(data) {
  return request({
    url: '/generator/userpaper',
    method: 'post',
    data: data
  })
}

// 修改用户做题记录
export function updateUserpaper(data) {
  return request({
    url: '/generator/userpaper',
    method: 'put',
    data: data
  })
}

// 删除用户做题记录
export function delUserpaper(id) {
  return request({
    url: '/generator/userpaper/' + id,
    method: 'delete'
  })
}
